#ifndef NETWORK_H
#define NETWORK_H

#include <QTcpServer>
#include <QTcpSocket>
#include <QMainWindow>


class NetWork:public QMainWindow
{
public:
    NetWork(QWidget *parent=nullptr);
    ~NetWork();

private slots:
    void new_client();
    void read_data();
private:
    QTcpServer server;
    QTcpSocket* socket;
};

#endif // NETWORK_H
